/*
 * @Description: 上传CD 模板面板
 * @Author: Rfan
 * @Date: 2022-12-29 11:02:01
 * @LastEditTime: 2023-02-07 16:56:02
 */

import { Space } from 'antd';
import TransferTemplate from '@/components/TransferTemplate';
import { EnumTemplateTypes } from '@/view/system/TemplateManage/dictionaries';
import type { InputStatus } from 'antd/es/_util/statusUtils';

interface ICDTemplateProps {
  value: number;
  templateState: InputStatus;
  onChange: any;
}
const TemplatePane = (props: ICDTemplateProps) => {
  const { value, templateState, onChange } = props;

  return (
    <Space>
      <h4>请选择模板</h4>
      <TransferTemplate
        tplType={EnumTemplateTypes.CDImport}
        value={value}
        templateState={templateState}
        onChange={onChange}
      />
    </Space>
  );
};

export default TemplatePane;
